package com.nbcio.modules.erp.voucher.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 财务凭证头实体
 */
@Data
@TableName("erp_voucher")
public class ErpVoucher {
    @TableId
    private Long voucherId;
    private String voucherNo;
    private LocalDate voucherDate;
    private String voucherWord;
    private Integer attachCount;
    private BigDecimal totalDebit;
    private BigDecimal totalCredit;
    private String billType;
    private Long billId;
    private String billNo;
    private String status; // DRAFT/POSTED/CANCELED
    private LocalDateTime postTime;
    private Long postUserId;
    private String remark;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}

